You are here: COM API reference > Designer object > AddExtensionToClass method

AddExtensionToClass method

Assigns an extension to an EDM class.

Syntax

Sub AddExtensionToClass(
          Environment As AMEDMEnvironment,
          ExtensionRef As AMComRef,
          Class As _AMEDM_CLASSES,
          [ProgID As String])
Parameters
Name Description

Environment

A reference to the environment object of the vault

ExtensionRef

The extension that needs to be assigned

Class

The class of object to which the extension needs to be assigned (see below)

ProgID

Reserved. See “About reserved objects, methods, and properties.”

Remarks

Use this method from the AfterRegisterExtension event. It allows the extension to be assigned to an object class (for example, AMBaseline for a baseline extension).

AMEDM_CLASSES
Name Assign Extension To

AMEDM_AMBASELINE

All baselines

AMEDM_AMCOMREF

All AMComRefs. An AMComRef represents an extension registered in the vault

AMEDM_AMDOCREF

Reserved. See “About reserved objects, methods, and properties.”

AMEDM_AMDOCREFTYPE

All Document Reference Type definitions in the Configurator

AMEDM_AMDOCUMENT

Reserved. See “About reserved objects, methods, and properties.”

AMEDM_AMDOCUMENTTEMPLATE

Reserved. See “About reserved objects, methods, and properties.”

AMEDM_AMDOCUMENTTYPE

All document type definitions in the Configurator

AMEDM_AMENVIRONMENT

Used to assign menu extensions to a vault (About AMM Menu Extension projects)

AMEDM_AMFOLDER

All folders

AMEDM_AMNAVIGATIONLEVEL

Reserved. See “About reserved objects, methods, and properties.”

AMEDM_AMNAVIGATIONVIEW

Reserved. See “About reserved objects, methods, and properties.”

AMEDM_AMPROPERTYDEF

Reserved. See “About reserved objects, methods, and properties.”

AMEDM_AMPROPERTYSET

Reserved. See “About reserved objects, methods, and properties.”

AMEDM_AMSELECTION

All AMSelection object (static collections)

AMEDM_AMSSQ

All stored search queries (dynamic collections)

AMEDM_AMWORKPACKAGE

Reserved. See “About reserved objects, methods, and properties.”

AMEDM_AMWPSTATE

All work area states

AMEDM_AMWPTANSITION

All work area state transitions

AMEDM_AMWPTEMPLATE

All work area template definitions in the Configurator

Related information

About extendable objects

AddExtensionToDocumentType method

AddExtensionToWPTemplate method


www.bluecieloecm.com